package com.test1230am;

public class Test06 {
    public static void main(String[] args) {
        // (6)求1到10之间的偶数和
        int sum = 0;
        for(int i=2;i<=10;i+=2){
            sum+=i;
        }
        System.out.println("偶数和为："+sum);
    }
}
